import { createStore,combineReducers,applyMiddleware } from 'redux'
import thunk from "redux-thunk"; //异步操作库
import {reducerUser} from './reducer/reducerUser'


// 合并多个reducer,更新原state状太数据，返回一个新状态
const reducer = combineReducers({reducerUser})

export const store = createStore(reducer,applyMiddleware(thunk))